﻿<!DOCTYPE html>
<html lang="en"> 
<head>
    <meta charset="utf-8" />
    <title>创建JavaScript对象</title>
</head>
<body>
    <script>
        person = { 
            firstName: "liu", 
            lastName: "hao", 
            age: 23, 
            eyeColor: "black" 
        }
        document.write(person.firstname + person.lastname + "现在" + person.age + "岁了");
    </script>
</body>
</html>